package hibernate;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class Factory {
	protected static SessionFactory factory = null;
	
	public static SessionFactory getFactory(){
		if(factory == null)
			factory = new Configuration().configure().buildSessionFactory();
		return factory;
	}
}
